chrome.action.onClicked.addListener((tab) => {
    chrome.scripting.executeScript({
      target: {tabId: tab.id},
      function: () => {
        chrome.runtime.sendMessage({ message: '检查页面' });
      }
    });
  });
  
  chrome.runtime.onMessage.addListener((message) => {
    if (message === '页面检查完成') {
      alert('检查完成！');
    }
  });